package com.ej.web.controller.ej.mis;

import com.ej.busi.dto.student.EjStudentAddDto;
import com.ej.busi.service.IEjStudentExtendService;
import com.ej.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 学生表 信息操作处理
 *
 * @author ej
 */
@RestController
@RequestMapping("/ej/mis/student")
public class EjStudentController {

    @Autowired
    private IEjStudentExtendService ejStudentExtendService;

    /**
     * 获取课程列表
     */
    @PreAuthorize("@ss.hasPermi('ej:student:list')")
    @PostMapping("/addStudent")
    public AjaxResult addStudent(@RequestBody EjStudentAddDto dto){
        ejStudentExtendService.addStudent(dto);
        return AjaxResult.success();
    }

}
